<template>
    <div>

    </div>
</template>

<script setup lang="ts">
import useUserStore from '@/store/modules/user';
import { onMounted } from 'vue';
import { useRoute } from 'vue-router';

let $route = useRoute()
let userStore = useUserStore()

let html: any = document.querySelector('html')
html.style.display = 'none'

onMounted(() => {
    if ($route.query.name) {
        const { token, name } = $route.query
        userStore.userInfo.name = name as string
        userStore.userInfo.token = token as string
    }
})
</script>

<style scoped></style>